package com.ha8.netease.models.vo
{
	import com.ha8.netease.models.WeiboModel;
	
	import flash.events.Event;
	
	public class MailModel extends WeiboModel
	{
		public function MailModel(data:Object)
		{
			super();
			
			id = data.id;
			sender = new UserModel(data.sender);
			text = data.text;
			created_at = new Date(data.created_at);
			recipient_id = data.recipient_id;
			sender_id = data.sender_id;
			sender_screen_name = data.sender_screen_name;
			recipient_screen_name = data.recipient_screen_name;
			recipient = new UserModel(data.recipient);
			followed_by = data.followed_by as Boolean;
		}
		
		override public function equal(value:WeiboModel):Boolean
		{
			var item:MailModel = value as MailModel;
			if (item.id == id)
				return true;
			else
				return false;
		}
		
		private var _id:String;
		
		[Bindable]
		public function get id():String
		{
			return _id;
		}

		public function set id(value:String):void
		{
			_id = value;
		}

		private var _sender:UserModel;

		[Bindable]
		public function get sender():UserModel
		{
			return _sender;
		}

		public function set sender(value:UserModel):void
		{
			_sender = value;
		}

		
		private var _text:String;

		[Bindable]
		public function get text():String
		{
			return _text;
		}

		public function set text(value:String):void
		{
			_text = value;
		}

		
		private var _created_at:Date;

		[Bindable]
		public function get created_at():Date
		{
			return _created_at;
		}

		public function set created_at(value:Date):void
		{
			_created_at = value;
		}

		
		private var _recipient_id:String;

		[Bindable]
		public function get recipient_id():String
		{
			return _recipient_id;
		}

		public function set recipient_id(value:String):void
		{
			_recipient_id = value;
		}

		
		private var _sender_id:String;

		[Bindable]
		public function get sender_id():String
		{
			return _sender_id;
		}

		public function set sender_id(value:String):void
		{
			_sender_id = value;
		}

		
		private var _sender_screen_name:String;

		[Bindable]
		public function get sender_screen_name():String
		{
			return _sender_screen_name;
		}

		public function set sender_screen_name(value:String):void
		{
			_sender_screen_name = value;
		}

		
		private var _recipient:UserModel;

		[Bindable]
		public function get recipient():UserModel
		{
			return _recipient;
		}

		public function set recipient(value:UserModel):void
		{
			_recipient = value;
		}

		
		private var _followed_by:Boolean;

		[Bindable]
		public function get followed_by():Boolean
		{
			return _followed_by;
		}

		public function set followed_by(value:Boolean):void
		{
			_followed_by = value;
		}
		
		
		private var _recipient_screen_name:String;

		[Bindable]
		public function get recipient_screen_name():String
		{
			return _recipient_screen_name;
		}

		public function set recipient_screen_name(value:String):void
		{
			_recipient_screen_name = value;
		}


	}
}